from django.http import HttpResponse
from django.shortcuts import render

def hello(request):
    return HttpResponse("Hello World!")

def runoob(request):
    views_dict = {'name': 'cainiaojiaocheng'}
    context = {}
    context[120501] = 'Hello World!'
    context[372510] = 'Wellcome to runoob!'
    context[392205] = 'Thanks!'
    context[558101] = "Wellcome to My WebPage!"
    view_lists = ["cainiaojiaocheng01", "cainiaojiaocheng02", "cainiaojiaocheng03", "cainiaojiaocheng04",
                  "cainiaojiaocheng05"]
    views_str = "<a href='https://www.runoob.com/'>点击跳转</a>"
    views_num = 88

    import datetime
    now = datetime.datetime.now()


    return render(request, "runoob.html",
                  {"dict": views_dict, "context_dict": context, "str": views_str, "lists": view_lists,
                   "num": views_num, "now_time": now})

